package main

import (
	"os"
	"path/filepath"
)

// TestBeegoInit is for test package init
func BeegoINIInit(ap string) {
	appConfigPath := filepath.Join(ap, "conf", "app.conf")
	os.Chdir(ap)
	if err := LoadAppConfig("ini", appConfigPath); err != nil {
		panic(err)
	}
}

func main() {
	BeegoINIInit(filepath.Dir(os.Args[0]))
}
